package com.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.mapper.ImageMapper;
import com.po.Image;

import com.service.ImageService;
@Service("ImageService")
public class ImageServiceImpl implements ImageService {
	@Autowired
	private ImageMapper mapper;

	@Override
	public void update(Image image) {
		mapper.update(image);
		
	}
	@Override
	public void add(Image image) {
		mapper.add(image);
		
	}
	@Override
	public void del(int id) {
		mapper.del(id);
		
	}
	@Override
	public Image findById(int id) {
		return mapper.findById(id);
	}


	@Override
	public java.util.List<Image> List() {
		// TODO Auto-generated method stub
		return mapper.List();
	}

}
